package com.yilin.tms.order;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableDiscoveryClient//代表自己是一个服务提供方
@EnableFeignClients(basePackages = {"com.yilin.tms.core.remote"}) //代表自己是一个服务消费方
@MapperScan("com.yilin.tms.order.mapper")//配置扫描的映射区域
@EntityScan("com.yilin.tms.core.entity.order") //必须配置实体包，因为实体未在本项目内
@SpringBootApplication(scanBasePackages = {"com.yilin.tms.core.components","com.yilin.tms.order"})//服务的公共配置统一放在公共区
@EnableMongoRepositories(basePackages = {"com.yilin.tms.core.components.repository"}) //mongo公共工厂
//@EnableScheduling
public class OrderServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class,args);
    }
}